package com.pi.dc.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class DcBedPostForm {
  @NotBlank(message="DC_DEVICE.DEVICE_CODE_EMPTY")
  @Length(min = 1, max = 40, message="DC_DEVICE.DEVICE_CODE_LENGTH_ILLGAL")
  private String deviceCode;
  @NotBlank(message="DC_DEVICE.DEVICE_NAME_EMPTY")
  @Length(min = 1, max = 40, message="DC_DEVICE.DEVICE_LENGTH_ILLGA")
  private String deviceName;
  @NotNull(message="DC_DEVICE.DEVICE_USER_NOT_FOUND")
  private Long ownerId;
  public String getDeviceCode() {
    return deviceCode;
  }
  public void setDeviceCode(String deviceCode) {
    this.deviceCode = deviceCode;
  }
  public String getDeviceName() {
    return deviceName;
  }
  public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
  }
  public Long getOwnerId() {
    return ownerId;
  }
  public void setOwnerId(Long ownerId) {
    this.ownerId = ownerId;
  }
}
